﻿namespace Exif.Interfaces
{
	///<summary>
	///Дробь
	///</summary>
	public interface IRational
	{
		///<summary>
		///Числитель
		///</summary>
		object Numerator { get; set; }

		///<summary>
		///Знаменатель
		///</summary>
		object Denominator { get; set; }

		///<summary>
		///Число
		///</summary>
		double Value { get; }
	}

	///<summary>
	///Дробь
	///</summary>
	///<typeparam name="T">Тип числителя / знаменателя</typeparam>
	public interface IRational<T> : IRational
	{
		///<summary>
		///Числитель
		///</summary>
		new T Numerator { get; set; }

		///<summary>
		///Знаменатель
		///</summary>
		new T Denominator { get; set; }
	}
}